<template>
  <div id="my-input">
    <input
      type="text"
      placeholder="狗子你的愿望是啥"
      :value="value"
      @input="inputChange"
    />
  </div>
</template>

<script>
export default {
  props: ["value"],
  data() {
    return {};
  },
  mounted() {},
  methods: {
    inputChange(e) {
      this.$emit("input", e.target.value);
    },
  },
};
</script>

<style lang="scss">
#my-input {
  margin-top: 20px;
  margin-left: 10px;
  input {
    width: 249px;
    height: 40px;
    padding-left: 10px;
  }
}
</style>
